package cs2340.flyingkiwi.todoapp;

import java.util.LinkedList;
import java.util.List;

/**
 * Holds a list of all the accounts with a method to add an account.
 * @author Group Flying Kiwi
 * @version 3 Mar 2012
 */
public class ProgramInfo
{
	private List<AccountInfo> accounts = new LinkedList<AccountInfo>();
	
	AccountManager aManager = new AccountManager();
	
	/**
	 * Adds an account to the list of accounts.
	 * @param account list holding all the accounts
	 */
	public void addAccountInfo(AccountInfo account)
	{
		accounts.add(account);
	}
	
	/**
	 * Returns the list of accounts.
	 * @return accounts list holding all the accounts
	 */
	public List<AccountInfo> getAccounts()
	{
		return accounts;
	}
}